<%-- 
    Document   : Result
    Created on : Oct 14, 2009, 2:25:13 PM
    Author     : balbir kaur
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>CSQUIZ: Resullts of the quiz</title>
        <link href="../include/quiz.css" rel="stylesheet" media="screen" type="text/css"/>
    </head>

    <body>
        <s:include value="../include/header.html"/>
        <div id="allcontent">
            <div id="leftsidebar">
                <ul><li><em><a href="<s:url value='show.action'/>"> Take Quiz Again </a></em></li></ul><br/>
                <script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US"></script><script type="text/javascript">FB.init("d7780c59853dfbf50ca590bc0dc31017");</script><fb:fan profile_id="192745930800" stream="1" connections="10" height="300" width="150"></fb:fan><div style="font-size:8px; padding-left:10px"><a href="http://www.facebook.com/apps/application.php?id=192745930800">cs1.6quiz on Facebook</a> </div>
            </div>
            <div id="main">
                <h2> You took the quiz !</h2><br/><br/>
                <strong><em>You Scored <s:property value="message"/></em></strong>
                <s:set name="message" value="%{message}" scope="session"/><br/>
                <s:set name="percentage" value="%{percentage}" scope="session"/>
                <s:form action="publish" name="facebook">
                    Do not click on the following depreciated link<br/>
                    <br/>
                    <input type="hidden" value="<s:property value='%{#session.message}'/>" name="message"/>
                    <input type="hidden" value="<s:property value='%{#session.percentage}'/>" name="percentage"/>
                    <div align="left" class="strikeout">
                        <img src="/cs1.6quiz/include/fb.gif" width="75" height="75" alt="facebook_icon" class="plainimg" onclick="document.forms['facebook'].submit();"/>
                    </div>
                    <div align="center" class="strikeout">
                    <s:submit value="Post to facebook "/></div>

                </s:form>
                    <br/> <br/> <br/>
                <s:form action="twitter" name="twitter">
                   <input type="hidden" value="<s:property value='%{#session.message}'/>" name="message"/>
                   <div align="left" >
                       <img src="/cs1.6quiz/include/tw.png" alt="twitter_icon" class="plainimg" onclick="document.forms['twitter'].submit();"/>
                   </div>
                    <div align="center">
                    <s:submit value="Post to Twitter"/></div>
                </s:form><br/><br/>
               <s:form action="fastpublish" name="fastfacebook">
                    <input type="hidden" value="<s:property value='%{#session.message}'/>" name="message"/>
                    <div align="left">
                        <img src="/cs1.6quiz/include/share.jpg"  alt="facebook_icon" class="plainimg" onclick="document.forms['fastfacebook'].submit();"/>
                    </div>
                    <div align="center">
                    <s:submit value="Post to facebook(Faster)"/></div>
                </s:form>
            </div>
        </div>

        <s:include value="../include/footer.jsp"/>
    </body>
</html>
